public class Main {
    public static void main(String[] args) {
        Dog dog1 = new Dog();
        Cat cat1 = new Cat();
        dog1.name = "wangcai";
        dog1.cry();

        cat1.name = "Tom";
        cat1.cry();

        dog1.getAnimalName();
        cat1.getAnimalName();
    }
}
